# -*- coding: utf-8 -*-
"""
@Time    : 2024/6/24 11:35 
@Author  : ZhangShenao 
@File    : http_status_code.py 
@Desc    : HTTP状态码定义
"""
from enum import Enum


class HttpStatusCode(str, Enum):
    """
    HTTP状态码定义
    """
    SUCCESS = "success"  # 处理成功
    FAIL = "fail"  # 处理失败
    INTERNAL_ERROR = "internal_error"  # 内部错误
    NOT_FOUND = "not_found"  # 资源未找到
    UNAUTHORIZED = "unauthorized"  # 未授权
    FORBIDDEN = "forbidden"  # 无权限
    VALIDATE_ERROR = "validate_error"  # 数据验证错误
